package com.foreveross.crawl.workers;

import java.util.List;

import org.apache.log4j.Logger;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.SchedulerException;
import org.quartz.UnableToInterruptJobException;

import com.foreveross.crawl.group.TaskGroup;

/**
 * 组任务超时扫描线程
 * 
 * @author guokenye
 * 
 */
public class CrawlGroupTaskTimeoutWorker extends AbstractTaskWorker {
	private static Logger logger = Logger.getLogger(CrawlGroupTaskTimeoutWorker.class);
	@Override
	public void execute(JobExecutionContext context)
			throws JobExecutionException {
//		try {
//			if(context.getScheduler().getJobNames("LineTaskTimeoutTriggerGroup").length>1){return;}
//		} catch (SchedulerException e1) {}
//		List<TaskGroup> groups=null;
//		long sys=System.currentTimeMillis();
//		logger.info("监听扫描启动!");
//		try {
//			
//		} catch (Exception e) {
//			logger.error(e);
//		}finally{
//			groups=null;
//			logger.info(String.format("本次监听扫描结束! 耗费时间[%s]",System.currentTimeMillis()-sys));
//			System.gc();
//		}
	}
	@Override
	public void interrupt() throws UnableToInterruptJobException {
		// TODO Auto-generated method stub
	}

}
